package com.ailk.bi.cq.cqbiaudit.warmMsgInfo.services

import org.springframework.stereotype.Service;

import com.ailk.bi.cq.cqbiaudit.vo.ResultVO
import groovy.util.logging.Slf4j;
import groovy.xml.MarkupBuilder

@Slf4j
@Service
class WarmMsgInfoService {
	ResultVO getWarmMsgData(){
		
				def writer = new StringWriter()
				def xml = new MarkupBuilder(writer)
				
				xml.result(){
					row(itemName:"调账异常抄作",kpiName:"调账时间异常",kpiSend:true,minValue:20,maxValue:40,warmMsg:true)
					row(itemName:"调账异常抄作1",kpiName:"调账异常抄作1",kpiSend:false,minValue:10,maxValue:90,warmMsg:false)
				}
				
				ResultVO result = new ResultVO(xmlString:writer.toString(),success:true)
				
				log.info(""+result)
				
				result
				
			 }
}
